<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMembersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('members', function (Blueprint $table) {
            $table->integer('user_id');
            $table->string('realname', 16);//真实姓名
            $table->char('gender', 1)->nullable(); //性别。m为男，f为女。
            $table->integer('age');//年龄
            $table->integer('area');//城市
            $table->string('identity_card', 18);//身份证
            $table->timestamp('birthday_at');//生日
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('members');
    }
}
